 

function loginCtrl($rootScope, $scope, $http, authenticate) {
  'ngInject';
  this.error = false;
  
  // 登录
  this.userLogin = ($event) => {
    this.startLoginFlag = true;
    authenticate.login(this.username, this.password)
      .then((success) => {}, (reason) => {
        this.startLoginFlag = false;
        this.error = true;
      })
  };
  // 记住密码
  this.rememberPwd = () => {

  }

}

export default loginCtrl;